home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / machserver / 1.098 / fslcl / fslclNameOps.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-10-10  |  1.6 KB  |  66 lines

  1. /* 
  2.  * fsLclNameOps.c --
  3.  *
  4.  *    Routine for initializing the fsOpTable switch entries for 
  5.  *    local naming domain.
  6.  *
  7.  * Copyright 1989 Regents of the University of California
  8.  * Permission to use, copy, modify, and distribute this
  9.  * software and its documentation for any purpose and without
  10.  * fee is hereby granted, provided that the above copyright
  11.  * notice appear in all copies.  The University of California
  12.  * makes no representations about the suitability of this
  13.  * software for any purpose.  It is provided "as is" without
  14.  * express or implied warranty.
  15.  */
  16.  
  17. #ifndef lint
  18. static char rcsid[] = "$Header: /sprite/src/kernel/fslcl/RCS/fslclNameOps.c,v 9.1 90/10/08 15:39:44 mendel Exp $ SPRITE (Berkeley)";
  19. #endif /* not lint */
  20.  
  21. #include <sprite.h>
  22. #include <fs.h>
  23. #include <fsio.h>
  24. #include <fsNameOps.h>
  25. #include <fslcl.h>
  26. #include <fslclInt.h>
  27.  
  28. /*
  29.  * fs_DomainLookup for FS_REMOTE_SPRITE_DOMAIN type.
  30.  */
  31.  
  32. static Fs_DomainLookupOps lclDomainLookup = {
  33.      Fsio_NoProc, FslclExport, FslclOpen, FslclGetAttrPath,
  34.      FslclSetAttrPath, FslclMakeDevice, FslclMakeDir,
  35.      FslclRemove, FslclRemoveDir, FslclRename, FslclHardLink,
  36. };
  37.  
  38. static Fs_AttrOps lclAttrOpTable =   { FslclGetAttr, FslclSetAttr };
  39.  
  40.  
  41. /*
  42.  *----------------------------------------------------------------------
  43.  *
  44.  * FsLclInitializeOps --
  45.  *
  46.  *    Initialize the fsOpTable switch for the remote domain naming 
  47.  *    and remote domain streams.
  48.  *
  49.  * Results:
  50.  *    None.
  51.  *
  52.  * Side effects:
  53.  *    None.
  54.  *
  55.  *----------------------------------------------------------------------
  56.  */
  57.  
  58. void
  59. Fslcl_NameInitializeOps()
  60. {
  61.  
  62.     Fs_InstallDomainLookupOps(FS_LOCAL_DOMAIN, &lclDomainLookup, 
  63.             &lclAttrOpTable);
  64. }
  65.  
  66.